<?php
session_start();
$loginpage = '/timetables/files/login.php';
setcookie('ID', '', time() - 600 , '/');
$_SESSION['ID'] = 'logedout'; //easy to hack... if you know it...
header('Location: ' .$loginpage);
?>